<template>
  <div>
    <ul>
      <li
        v-for="p in products"
      >
        {{p.name}} - {{p.price}} x {{p.quantity}}
      </li>
    </ul>
  </div>
</template>

<script>
import { mapState } from 'vuex'
export default {
  computed: {
    ...mapState('cart', ['products'])
  }
}
</script>

<style lang='stylus' scoped>

</style>